package java基础.operator;

/**
 * @author IT_Jay
 * @date 2021/11/29 19:17
 */

public class Demo07 {
    public static void main(String[] args) {
        int a = 10;
        int b = 20;

        a += b;         //a = a+b
        b -= a;         //b = b-a
        System.out.println(a);      //30
        System.out.println(b);      //-10

        //字符串连接符  +   ,String
        System.out.println(""+a+b);         //注意顺序
        System.out.println(a+b+"");
        System.out.println(a+b+"a");
        System.out.println(a+b+"9");
    }
}
